/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package settingsManager;

import java.awt.Color;

/**
 *
 * @author rbs
 */
public class Setting {

    public enum Types {
        t_int, t_float, t_string, t_bool, t_color
    }

    private String name;
    private Object value;
    private Types type;

    public Setting(Types type, String name, String value) {
        this.type = type;
        this.value = value;
        this.name = name;
    }

    public Setting(String name, int value)
    {
        this.type = Types.t_int;
        this.value = value;
    }

    public Setting(String name, float value)
    {
        this.type = Types.t_float;
        this.value = value;
    }

    public Setting(String name, String value)
    {
        this.type = Types.t_string;
        this.value = value;
    }

    public Setting(String name, boolean  value)
    {
        this.type = Types.t_bool;
        this.value = value;
    }

    public Setting(String name, Color value)
    {
        this.type = Types.t_color;
        this.value = value;
    }

    public String getName()
    {
        return name;
    }

    public Object getValue()
    {
        return value;
    }

}
